package com.rayo.accesscontrollercopy.model.db.dao;


import com.rayo.accesscontrollercopy.model.db.DbHelp;
import com.rayo.accesscontrollercopy.model.db.bean.DmuTimeData;

import java.util.List;

/**
 * Created by yanghaojie on 16/7/27.
 */
public class DmuTimeImpl implements DmuTimeDao {
    @Override
    public List<DmuTimeData> findAll() {
        return DbHelp.getQueryAll(DmuTimeData.class);
    }

    @Override
    public void addAll(List<DmuTimeData> dmuTimeDatas) {
        DbHelp.insertAll(dmuTimeDatas);
    }

    @Override
    public void addDmuTime(DmuTimeData dmuTimeDatas) {
        DbHelp.insert(dmuTimeDatas);
    }

    @Override
    public void updateAll(List<DmuTimeData> dmuTimeDatas) {

    }

    @Override
    public void updateDmuTime(DmuTimeData dmuTimeData) {
        DbHelp.update(dmuTimeData);
    }

    @Override
    public void deleteAll() {
        DbHelp.deleteAll(DmuTimeData.class);
    }
}
